﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace ControlerLib
{
    public partial class ImageDisplayEidorsGreitControler : UserControl
    {
        Int16 [,] a;
        float [,] b;
        public ImageDisplayEidorsGreitControler()
        {
            InitializeComponent();
        }

        public void ReconMatrix(string path)
        {
            BinaryReader br = new BinaryReader(File.Open(path, FileMode.Open));

            int ax = br.ReadInt16();
            int ay = br.ReadInt16();
            int bx = br.ReadInt16();
            int by = br.ReadInt16();

            for (int i = 0; i < ax; i++)
            {
                for (int j = 0; j < ax; j++)
                {
                    a[i, j] = br.ReadInt16();
                }
            }
        }
    }
}
